package com.fjnu.entities;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
/**
 * 资产申请申报单
 * @author 默默
 *
 */
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
@JsonIdentityInfo(
        generator = ObjectIdGenerators.PropertyGenerator.class,
        property = "id",
        scope = Borrow.class)
public class Borrow {
	private Integer id;
	private User borrowPerson;
	private String borrowUnit;
	private String useReason;
	private Date borrowTime;
	private Date returnTime;
	private MainInstrument mainInstrument;

	public static String NOEXAM="未审核";
	public static String PASSEXAM="已审核通过";
	public static String NOPASS="审核未通过";
	
	private String status;
	
	public static String YESRETURN="已还";
	public static String NORETURN="未还";
	
	private String process;
	private Date examTime;
	private User examPerson;
	public Borrow() {
		// TODO Auto-generated constructor stub
	}
	public Borrow(User borrowPerson, String useReason, Date borrowTime, Date returnTime,
			MainInstrument mainInstrument, String status) {
		super();
		this.borrowPerson = borrowPerson;
		//this.borrowUnit = borrowUnit;
		this.useReason = useReason;
		this.borrowTime = borrowTime;
		this.returnTime = returnTime;
		this.mainInstrument = mainInstrument;
		this.status = status;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public User getBorrowPerson() {
		return borrowPerson;
	}
	public void setBorrowPerson(User borrowPerson) {
		this.borrowPerson = borrowPerson;
	}
	public String getBorrowUnit() {
		return borrowUnit;
	}
	public void setBorrowUnit(String borrowUnit) {
		this.borrowUnit = borrowUnit;
	}
	public String getUseReason() {
		return useReason;
	}
	public void setUseReason(String useReason) {
		this.useReason = useReason;
	}
	public Date getBorrowTime() {
		return borrowTime;
	}
	public void setBorrowTime(Date borrowTime) {
		this.borrowTime = borrowTime;
	}
	public Date getReturnTime() {
		return returnTime;
	}
	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}
	public MainInstrument getMainInstrument() {
		return mainInstrument;
	}
	public void setMainInstrument(MainInstrument mainInstrument) {
		this.mainInstrument = mainInstrument;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getProcess() {
		return process;
	}
	public void setProcess(String process) {
		this.process = process;
	}
	public Date getExamTime() {
		return examTime;
	}
	public void setExamTime(Date examTime) {
		this.examTime = examTime;
	}
	public User getExamPerson() {
		return examPerson;
	}
	public void setExamPerson(User examPerson) {
		this.examPerson = examPerson;
	}
	
	
}
